package com.website.mybatis.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@TableName(value = "menu")
public class Menu implements Serializable{


	private static final long serialVersionUID = -5154823891555826827L;

	@TableId(type = IdType.AUTO)
	private Integer id;
    private Integer parentId;
    private String menuName;
    private Integer menuOrder;
    private Short menuLevel;
    private String menuRemark;
    private Date createTime;
	private Date updateTime;
    private List<Menu> childrens;
    private String content;

	public Menu() {
		super();
	}
	public Menu(Integer id, Integer parentId, String menuName,
			Integer menuOrder, Short menuLevel, String menuRemark,
			Date createTime, Date updateTime, List<Menu> childrens,
			String content) {
		super();
		this.id = id;
		this.parentId = parentId;
		this.menuName = menuName;
		this.menuOrder = menuOrder;
		this.menuLevel = menuLevel;
		this.menuRemark = menuRemark;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.childrens = childrens;
		this.content = content;
	}
}
